@page
@using EasyAbp.GiftCardManagement.Authorization
@using EasyAbp.GiftCardManagement.Localization
@using EasyAbp.GiftCardManagement.Web.Pages.GiftCardManagement.GiftCards.GiftCard
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Mvc.Localization
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@using Volo.Abp.AspNetCore.Mvc.UI.Layout
@inject IHtmlLocalizer<GiftCardManagementResource> L
@model ConsumeModel
@inject IPageLayout PageLayout
@{
    PageLayout.Content.Title = L["GiftCard"].Value;
    PageLayout.Content.BreadCrumb.Add(L["Menu:GiftCardConsumption"].Value);
    PageLayout.Content.MenuItemName = "EasyAbpGiftCardManagementGiftCardConsumption";
}

@section scripts
{
    <abp-script src="/Pages/GiftCardManagement/GiftCards/GiftCard/consume.js" />
}
@section styles
{
    <abp-style src="/Pages/GiftCardManagement/GiftCards/GiftCard/consume.css"/>
}

<abp-card>
    <abp-card-header>
        <abp-row>
            <abp-column size-md="_6">
                <abp-card-title>@L["ConsumeGiftCard"]</abp-card-title>
            </abp-column>
        </abp-row>
    </abp-card-header>
    <abp-card-body>
        <abp-dynamic-form abp-model="ConsumeGiftCard" data-ajaxForm="true" asp-page="Consume">
            <abp-form-content />
            <abp-modal-footer buttons="(@AbpModalButtons.Save)"></abp-modal-footer>
        </abp-dynamic-form>
    </abp-card-body>
</abp-card>